//1-1获取控件版本
	function KS_GetVersions() {
		var result;
		var str="1";
		$.ajax({
			type :"POST",
			url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
			cache: false,
			data:JSON.stringify({"interface_type":str}),
			success : function(data) {		
				var mes = JSON.parse( data );
				result=mes.str_version;
				alert(result);
			}
			});	
		return "ok";
		
	}
//3.2-4设置算法提供者KS_SetProv
function KS_SetProvs(str_prov,lalg,str_path) {
	var result;
	var interface_type="2";
/*	var str_prov=str_prov;
	var lalg=lalg;
	var str_path=str_path;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_prov":str_prov,"lalg":Number(lalg),"str_path":str_path}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.3-3设置参数 KS_SetParam
function KS_SetParams(str_paramname,str_path) {
	var result;
	var interface_type="3";
/*	var str_paramname;
	var str_path;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_paramname":str_paramname,"str_path":str_path}),
		success : function(data) {	
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.4-2获取参数 KS_GetParam
function KS_GetParams(str_paramname) {
	var result;
	var interface_type="4";
	//var str_paramname;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_paramname":str_paramname}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_paramdata;
		}
		});	
	return result;
}
//3.5生成密钥对.KS_GetZWFWSealList
function KS_GenKeyPairs() {
	var result;
	var interface_type="5";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_pubkey;
		}
		});	
	return result;
}
//3.6产生P10
function P10s(str_dn,str_hashalg) {
	var result;
	var interface_type="6";
	/*var str_dn;
	var str_hashalg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_dn":str_dn,"str_hashalg":Number(str_hashalg)}),
		success : function(data) {
			var mes = JSON.parse( data );
			
			result=mes.str_p10;
		}
		});	
	return result;
}
//3.7保存证书KS_SaveCert
function KS_SaveCerts(str_signcert,str_enccert,str_enckey) {
	var result;
	var interface_type="7";
/*	var str_signcert;
	var str_enccert;
	var str_enckey;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_signcert":str_signcert,"str_enccert":str_enccert,"str_enckey":str_enckey}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.8导入证书链KS_SaveCertChain
function KS_SaveCertChains(str_p7_certchain) {
	var result;
	var interface_type="8";
	//var str_p7_certchain;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_p7_certchain":str_p7_certchain}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.9读取公钥证书KS_GetCert
function KS_GetCerts(str_type) {
	var result;
	var interface_type="9";
	//var str_type;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_type":Number(str_type)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_base64cert;
		}
		});	
	return result;
}
//3.10解析证书KS_GetCertInfo
function KS_GetCertInfos(str_cert,str_type) {
	var result;
	var interface_type="10";
	/*var str_cert;
	var str_type;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_cert":str_cert,"str_type":Number(str_type)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			
			result=mes.str_info;
		}
		});	
	return result;
}
//3.11解析证书扩展项KS_GetCertInfoByOid
function KS_GetCertInfoByOids(str_cert) {
	var result;
	var interface_type="11";
	//var str_cert;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_cert":str_cert}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_info;
		}
		});	
	return result;
}
//3.12随机数KS_GenRandom
function KS_GenRandoms(str_len) {
	var result;
	var interface_type="12";
	//var str_len;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_len":Number(str_len)}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_random;
		}
		});	
	return result;
}
//3.13摘要数据KS_HashData
function KS_HashDatas(str_indata,str_alg) {
	var result;
	var interface_type="13";
	/*var str_indata;
	var str_alg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_indata":str_indata,"str_alg":Number(str_alg)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_hashdata;
		}
		});	
	return result;
}
//3.14摘要文件KS_HashFile
function KS_HashFiles(str_file,str_alg) {
	var result;
	var interface_type="14";
	/*var str_file;
	var str_alg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_file":str_file,"str_alg":Number(str_alg)}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_hashdata;
		}
		});	
	return result;
}
//3.15签名数据KS_SignData
function KS_SignDatas(str_indata,str_hashalg) {
	var result;
	var interface_type="15";
	/*var str_indata;
	var str_hashalg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_indata":str_indata,"str_hashalg":Number(str_hashalg)}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_signdata;
		}
		});	
	return result;
}
//3.16-5验证签名KS_VerifySignData
function KS_VerifySignDatas(str_indata,str_signdata,str_cert,str_hashalg) {
	var result;
	var interface_type="16";
/*	var str_indata;
	var str_signdata;
	var str_cert;
	var str_hashalg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_indata":str_indata,"str_signdata":str_signdata,"str_cert":str_cert,"str_hashalg":Number(str_hashalg)}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.17验证P7签名KS_VerifyP7SignData
function KS_VerifyP7SignDatas(str_p7signdata) {
	var result;
	var interface_type="17";
	//var str_p7signdata;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_p7signdata":str_p7signdata}),
		success : function(data) {
			var mes = JSON.parse( data );	
			
			result=mes.error_code;
		}
		});	
	return result;
}
//3.18导入P12证书KS_ImportP12Cert
function KS_ImportP12Certs(str_certtype,str_base64p12cert,str_pin) {
	var result;
	var interface_type="18";
/*	var str_certtype;
	var str_base64p12cert;
	var str_pin;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_certtype":str_certtype,"str_base64p12cert":str_base64p12cert,"str_pin":str_pin}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.error_code;
		}
		});	
	return result;
}
//3.19对称加密KS_SymmEncrypt
function KS_SymmEncrypts(str_oridata,str_key,str_symmalg) {
	var result;
	var interface_type="19";
/*	var str_oridata;
	var str_key;
	var str_symmalg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_oridata":str_oridata,"str_key":str_key,"str_symmalg":Number(str_symmalg)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_encdata;
		}
		});	
	return result;
}
//3.20对称解密KS_SymmDecrypt
function KS_SymmDecrypts(str_encdata,str_key,str_symmalg) {
	var result;
	var interface_type="20";
/*	var str_encdata;
	var str_key;
	var str_symmalg;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_encdata":str_encdata,"str_key":str_key,"str_symmalg":Number(str_symmalg)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_oridata;
		}
		});	
	return result;
}
//3.21组数字信封KS_MakeEnvelope
function KS_MakeEnvelopes(str_oridata,str_base64cert) {
	var result;
	var interface_type="21";
	/*var str_oridata;
	var str_base64cert;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_oridata":str_oridata,"str_base64cert":str_base64cert}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_envelope;
		}
		});	
	return result;
}
//3.22解数字信封KS_OpenEnvelop
function KS_OpenEnvelops(str_envelope) {
	var result;
	var interface_type="22";
	//var str_envelope;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_envelope":str_envelope}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_oridata;
		}
		});	
	return result;
}
//3.23获得硬件介质号 KS_GetAllDeviceSerialNumber
function KS_GetAllDeviceSerialNumbers() {
	var result;
	var interface_type="23";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_serialnumber;
		}
		});	
	return result;
}
//3.24获得小精灵版本号KS_GetXJLVersion
function KS_GetXJLVersions() {
	var result;
	var interface_type="24";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_serialnumber;
		}
		});	
	return result;
}
//3.25电子钥匙解锁KS_UnblockPIN
function KS_UnblockPINs(str_adminpin,str_userpin) {
	var result;
	var interface_type="25";
	/*var str_adminpin;
	var str_userpin;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_adminpin":str_adminpin,"str_userpin":str_userpin}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.26电子钥匙格式化 KS_FormatDev
function KS_FormatDevs() {
	var result;
	var interface_type="26";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.27获得签章图片KS_GetImage
function KS_GetImages(str_shebao,str_o) {
	var result;
	var interface_type="27";
	/*var str_shebao;
	var str_o;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_shebao":str_shebao,"str_o":str_o}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_signimage;
		}
		});	
	return result;
}
//3.28验证PIN码函数 KS_CheckPIN
function KS_CheckPINs(str_pin) {
	var result;
	var interface_type="28";
	//var str_pin;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_pin":str_pin}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.29获取设备VID KS_GetDeviceVid
function  KS_GetDeviceVids() {
	var result;
	var interface_type="29";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_devicevid;
		}
		});	
	return result;
}
//3.30获取设备CSP KS_GetDeviceCSP
function KS_GetDeviceCSPs() {
	var result;
	var interface_type="30";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_devicecsp;
		}
		});	
	return result;
}
//3.31写入注册表KS_SetServiceAdd
function KS_SetServiceAdds(str_id,str_addr) {
	var result;
	var interface_type="31";
	/*var str_id;
	var str_addr;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_id":Number(str_id),"str_addr":str_addr}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.32获得证书KS_GetCertFromNet
function KS_GetCertFromNets(str_id) {
	var result;
	var interface_type="32";
	//var str_id;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_id":str_id}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_info;
		}
		});	
	return result;
}
//3.33获得签名KS_GetSignValueFromNet
function KS_GetSignValueFromNets(str_id,str_time) {
	var result;
	var interface_type="33";
	/*var str_id;
	var str_time;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_id":str_id,"str_time":Number(str_time)}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_info;
		}
		});	
	return result;
}
//3.34印章数据写入 KS_SetConfigToKey
function KS_SetConfigToKeys(str_sealdata) {
	var result;
	var interface_type="34";
	//var str_sealdata;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_sealdata":str_sealdata}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.35获取印章格式数据 KS_GetASN1ByParseJSON
function KS_GetASN1ByParseJSONs(str_jsondata,str_flag) {
	var result;
	var interface_type="35";
	/*var str_jsondata;
	var str_flag;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_jsondata":str_jsondata,"str_flag":str_flag}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_info;
		}
		});	
	return result;
}
//3.36获取印章列表 KS_GetSealList
function KS_GetSealLists() {
	var result;
	var interface_type="36";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_seallistdata;
		}
		});	
	return result;
}
//3.37从key中读取印章 KS_GetSeal
function KS_GetSeals(str_sealid) {
	var result;
	var interface_type="37";
	//var str_sealid;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_sealid":str_sealid}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_sealdata;
		}
		});	
	return result;
}
//3.38解析印章KS_GetInfoFromSeal
function KS_GetInfoFromSeals(str_sealdata,str_type) {
	var result;
	var interface_type="38";
	/*var str_sealdata;
	var str_type;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_sealdata":str_sealdata,"str_type":Number(str_type)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_sealinfo;
		}
		});	
	return result;
}
//3.39删除所有印章 KS_DeleteFromKey
function KS_DeleteFromKeys() {
	var result;
	var interface_type="39";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.error_code;
		}
		});	
	return result;
}
//3.40获取最后操作错误码KS_GetLastErrorCode
function KS_GetLastErrorCodes() {
	var result;
	var interface_type="40";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.error_code;
		}
		});	
	return result;
}
//3.41获取最后操作错误描述KS_GetLastErrorMsg
function KS_GetLastErrorMsgs() {
	var result;
	var interface_type="41";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			console.log(mes);
			result=mes.b_stateflag;
		}
		});	
	return result;
}
//3.43业务系统登录生成数据 KS_SysLoginGenCode
function KS_SysLoginGenCodes(bstrUrl,bstrSystemID) {
	var result;
	var interface_type="43";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_Url":bstrUrl,"str_SystemId":bstrSystemID}),
		success : function(data) {
			var mes = JSON.parse( data );
			console.log(mes);
			result=mes.str_GenCode;
		}
		});	
	return result;
}

//3.51KS_WaitForDevEvent
function KS_WaitForDevEvents() {
	var result;
	var interface_type="51";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : true,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			console.log(mes);
			result=mes.lEvent;
			alert(result);
			XACA_KEYOUT();
		}
		});	
	return result;
}

//3.52KS_CancelWaitForDevEvent
function KS_CancelWaitForDevEvents() {
	var result;
	var interface_type="52";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : true,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			console.log(mes);
			result=mes.error_code;
			alert(result);
			
		}
		});	
	return result;
}

//3.101获取印章列表 KS_GetSealList
function KS_GetZWFWSealLists() {
	var result;
	var interface_type="101";
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_seallistdata;
		}
		});	
	return result;
}
//3.102从key中读取印章 KS_GetSeal
function KS_GetZWFWSeals(str_sealid) {
	var result;
	var interface_type="102";
	//var str_sealid;
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_sealid":str_sealid}),
		success : function(data) {
			var mes = JSON.parse( data );
			result=mes.str_sealdata;
		}
		});	
	return result;
}
//3.103解析印章KS_GetInfoFromSeal
function KS_GetInfoFromZWFWSeals(str_sealdata,str_type) {
	var result;
	var interface_type="103";
	/*var str_sealdata;
	var str_type;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_sealdata":str_sealdata,"str_type":Number(str_type)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			console.log('mes',mes)
			result=mes.str_sealinfo;
		}
		});	
	return result;
}

//3.201解析印章KS_SignHashData
function KS_SignHashDatas(str_indata,str_hashalg) {
	var result;
	var interface_type="201";
	/*var str_sealdata;
	var str_type;*/
	$.ajax({
		type :"POST",
		url : "http://localhost:9002/WebServerPrinter/Client/signPostData.do",
		async : false,
		cache: false,
		data:JSON.stringify({"interface_type":interface_type,"str_InData":str_indata,"str_lHashAlg":Number(str_hashalg)}),
		success : function(data) {
			var mes = JSON.parse( data );	
			result=mes.str_info;
		}
		});	
	return result;
}